package com.niit.mall.order.domain.query;


import com.niit.mall.common.domain.query.PageQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @BelongsProject: pardo_mall_backend
 * @BelongsPackage: com.niit.mall.admin.domain.query
 * @Author: ChuXuan
 * @CreateTime: 2025-05-25  22:32
 * @Description: 退货申请查询参数
 * @Version: 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnApplyQuery extends PageQuery {
	/**
	 * 服务单号
	 */
	private Long id;

	/**
	 * 退货人姓名/手机号关键字
	 */
	private String keyword;

	/**
	 * 申请状态：0->待处理；1->退货中；2->已完成；3->已拒绝
	 */
	private Integer status;

	/**
	 * 处理时间开始
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime handleTimeStart;

	/**
	 * 处理时间结束
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime handleTimeEnd;

	/**
	 * 创建日期开始
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate createDateStart;

	/**
	 * 创建日期结束
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate createDateEnd;

	/**
	 * 处理人员
	 */
	private String handleMan;
}
